package org.tis.tools.model.log.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.tis.tools.model.enums.CommonEnumDeserializer;
import org.tis.tools.model.log.enums.DataOperateType;

import java.util.Date;
import java.util.List;

/**
 * 查询记录日志差异值时的 时间轴数据返回
 * Created by chenchao
 * Created on 2018/10/29 12:04
 */
@Data
public class LogDataChangeDetail {

    private String guidData;

    @JSONField(deserializeUsing = CommonEnumDeserializer.class)
    private DataOperateType operateType;

    private Date operateTime;

    private List<LogDataChangeMessage> messagesList;

    public LogDataChangeDetail(){}

    public LogDataChangeDetail(String guidData, DataOperateType operateType, Date operateTime,
                               List<LogDataChangeMessage> list){
        this.guidData = guidData;
        this.operateType = operateType;
        this.operateTime = operateTime;
        this.messagesList = list;
    }

}
